package com.bwie.bwedu.model.impl;

import android.content.Context;

import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.bwie.bwedu.model.DAiLiModel;
import com.bwie.bwedu.volley.RequestAPI;

/**
 * Created by 沫沫~ on 2016/7/25.
 */
public class DaiLiImpl implements DAiLiModel {
	@Override
	public void daiLi(final Context context, final Agentistener listener) {
		// TODO 获取代理人路径

		RequestAPI.getAgent(context,new Response.Listener<String>(){


			@Override
			public void onResponse(String s) {
				listener.onGetAgentSuccess(s);
			}
		}, new Response.ErrorListener(){

			@Override
			public void onErrorResponse(VolleyError volleyError) {
				listener.onGetAgentFail();
			}
		});

	}
}
